/**
 *
 */
package gemini.castor.ui.client.service;

import gemini.basic.model.Address;
import gemini.basic.model.User;

import org.springframework.transaction.annotation.Transactional;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

/**
 *
 *
 */
@RemoteServiceRelativePath("userService.rpc")
@Transactional(rollbackFor = Throwable.class, readOnly = false)
public interface UserService extends RemoteService {
	public User getUserByName(String username);
	public User save(User user);
	public boolean savePassword(String userName,String password,String newPassword);
	public boolean savePhone(String userName,String password,String newPhone);
	public boolean saveEmail(String userName,String password,String newEmail);
	public boolean saveAddress(String userName,String password,Address newAddress);
}
